import getlink from "@/apis/api.js"
let action={
    state:{
        state: {
            text:"你好",
    }
    },
    mutations:{
        uparr(state,payload){
            state.arr=payload.arrdata
          }
    },
    actions:{
        demoLink(){
           console.log("我是actions");
       },
       getaxios(context,payload){
           console.log(context);
        getlink(payload.url).then((ok)=>{
            console.log(ok.data.data);
            context.commit("uparr",{arrdata:ok.data.data})
        })
        }
    },
    getters:{
    }
}
export default action
